package org.example.DesignPatterns.Memento;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-23 19:05
 **/
public class Client {



    public static void main(String[] args) {
        Editor editor=new Editor(new Doc("《rua》"));
        editor.append("第一章 ruaa");
        editor.append("\n 正文2000字.......");

        editor.delete();

        editor.undo();
    }



}